package com.bana.fvs.app.mvp.model;

import com.bana.fvs.app.mvp.ConstantsValue;
import com.bana.fvs.app.mvp.contract.ChangePhoneContract;
import com.wei.commonlibrary.net.OkhttpRequest;

import java.util.HashMap;

/**
 * Author : yanftch
 * Date : 2018/3/1
 * Time : 21:45
 * Desc :
 */

public class ChangePhoneModel extends ChangePhoneContract.AbsChangePhoneModel {
    @Override
    public void onStart() {

    }

    @Override
    public OkhttpRequest http_changePhone(String token, String telephone) {
        HashMap<String, Object> map = new HashMap<>();
        map.put(ConstantsValue.TOKEN, token);
        map.put(ConstantsValue.SJ, telephone);
        return okhttpRequest.url(iApiService.updateUserPhone(map));
    }
}
